package com.hou.oauth2server.controller;

import com.hou.oauth2server.dao.UserDao;
import com.hou.oauth2server.domain.PO.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 其他验证获取token API
 */
@RestController
@RequestMapping("/token")
public class TokenController {

    @Autowired
    private UserDao userDao;
    @GetMapping("/test")
    public List<User> test(){
        return userDao.findAllUser();
    }
}
